package com.fgchen.study.aop.aspect;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;

/**
 * Created by fgchen on 2017/6/15.
 */
@Aspect
public class LogAspect {

    @Pointcut("execution(* com.fgchen.study.aop.biz.UserBiz.*(..))")
    public void pointcut() {
    }

    @Before("pointcut()")
    public void before() throws Throwable {
        System.out.println("--------拦截到方法--------");
    }

}
